package cn.bincker.mycaptcha.basic.properties;

public interface ImageCaptchaProperties extends MyCaptchaProperties, CacheableProperties{
    Integer DEFAULT_WIDTH = 480;
    Integer DEFAULT_HEIGHT = 320;
    /**
     * 验证码宽度
     */
    Integer getWidth();

    /**
     * 验证码高度
     */
    Integer getHeight();

    default Double getHalfWidth(){
        return getWidth() / 2d;
    }

    default Double getHalfHeight(){
        return getHeight() / 2d;
    }
}
